<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box1{
            width: 500px;
            height: 500px;
        }
        .box2{
            width: 500px;
            height: 150px;
            background-color: rgba(0,0,0,0.4);
            position: absolute;
            top: 115px;

        }

    </style>
</head>
<body>
<div class="box1">
    <img src="./img/java.png" alt="" style="width: 500px">
</div>
<div class="box2"></div>
</body>
</html>